<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.com">
<head>
    <meta charset="UTF-8">
    <title>List Page</title>
    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" th:href="@{https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css}">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script type="text/javascript" th:src="@{https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js}"></script>
    <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
    <script type="text/javascript" th:src="@{https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js}"></script>
    <!-- 移动设备优先 -->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
    <div class="container">
        <h2>结算记录管理</h2>
        <form th:action="@{/{action}(action=${action})}" method="post" class="form-horizontal">
            <input type="hidden" name="id" th:value="${sr.id}" />

            <div class="form-group">
                <label class="col-sm-2 control-label">结算类型(开票/报销):</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="sr_category" name="category" th:value="${sr.category}" th:field="*{sr.category}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">金额:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="sr_number" name="category" th:value="${sr.number}" th:field="*{sr.number}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">记录描述:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="sr_description" name="description" th:value="${sr.description}" th:field="*{sr.description}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">记录时间:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="sr_date" name="date" th:value="${sr.date}" th:field="*{sr.date}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">记录人:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="sr_username" name="username" th:value="${sr.username}" th:field="*{sr.username}">
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input class="btn btn-primary" type="submit" value="提 交" />
                    <input class="btn" type="button" value="返回" onclick="history.back()">
                </div>
            </div>
        </form>
    </div>
</body>
</html>